<?php  
	namespace Home\Controller;
	use Think\Controller;

	class ListController extends Controller
	{
		public function list(){

			// var_dump($_GET);

			$product 	= M('product');

			$productArr = $product->join('__SKU_GOODS__ sg ON sg.proudct_id = product.max_id')->where('cat_id='.I('get.id'))->group('product.max_id')->select();

			// NSLog($productArr);

			$this->assign('productArr',$productArr);

			$this->display();
		}
	}